package cn.tedu._05mvcboot02.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

/**
 * Configuration:配置类，
 * MapperScan:扫描mapper接口;
 *      1.自动扫描指定的包下的mapper接口,并将其注册为Spring Bean
 *      3.添加此注解后,所有的mapper接口,都不需要再添加@Mapper注解
 */
@Configuration
@MapperScan("cn.tedu._05mvcboot02.mapper")
public class MybatisConfig {
}
